package com.zp.demopractice1.Utils;

import android.content.res.Resources;
import android.util.TypedValue;

/**
 * Created by izp on 2017/6/7.
 */

public class UIUtils {
    public static int dpToPx(int dp) {
        return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, Resources.getSystem().getDisplayMetrics());
    }
}
